package com.mbc.common.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;

import com.mbc.common.data.CurrencyRateDataList;
import com.mbc.common.entities.CurrencyRate;
import com.mbc.common.entities.CurrencyRateRpt;

public interface CurrencyRateDAO {
	public void create(CurrencyRate entity)throws SQLException;
	public void update(CurrencyRate entity)throws SQLException;
	public void delete(long key)throws SQLException;
	public CurrencyRate find(long key)throws SQLException;
	public CurrencyRate findByCode(String code,long branchId)throws SQLException;
	public CurrencyRate find(long sourceCurrencyId, long convertCurrencyId,long branchId)throws SQLException;
	public ArrayList<CurrencyRate> findAll()throws SQLException;
	public CurrencyRateDataList getList(CurrencyRate cri) throws SQLException;
	/** MBC **/
	public CurrencyRate findCurrencyRateByCode(String code) throws SQLException;
	ResultSet prepareCurrencyRateReport(CurrencyRateRpt info) throws SQLException;
	public CurrencyRate getCurrencyRateFromSourcetoHome(long sourceCurrencyId,long branchId)throws SQLException;
}
